<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
	<title></title>
	<script type="text/javascript" src="__PUBLIC__/Admin/js/jquery-1.7.2.min.js"></script>
	<link rel="stylesheet" type="text/css" href="__PUBLIC__/Admin/css/common.css">
	<script type="text/javascript">
		$(function(){
			$('.add_btn').click(function(){
				if($('select[name=tid]').val()==''){
					alert('请选择所属类型');
					return false;
				}
			});
		})
	</script>
</head>
<body>
	<div class='status'>
		<span>添加子级分类</span><a href="{:U('index')}" class='back'><strong>返回分类列表<b></b></strong></a>
	</div>
	<div>
		<form method='post' action="{:U('runAddCate')}">
		<table class='table' cellspacing='0px' cellpadding='0px'>
			<tr><th colspan='2'>添加子级分类</th></tr>
			<tr>
				<td>添加所属类型</td>
				<td>
					<select name='tid' class='select'>
						<option value=''>请选择</option>
						<foreach name='data' item='v'>
							<option value="{$v.id}">{$v.name}</option>
						</foreach>
					</select>
				</td>
			</tr>
			<tr><td>分类名称：</td><td><input type='text' name='name' class='text'/></td></tr>
			<tr><td colspan='2' class='td_center'>
				<input type='hidden' value="{$_GET['pid']}" name='pid'/>
				<input type='submit' class='add_btn' value='保存添加'/></td></tr>
		</table>
		</form>
	</div>
</body>
</html>